package top.melody.ecommerce.platform.api.domain.goods;

import java.io.Serializable;

import top.melody.ecommerce.common.util.reflect.ReflectUtil;

import java.util.Date;


/**
 * @author: melody
 * @groupId:rd
 * @createdate:2016-10-18
 * @mail: blentle.huan.ren@gmail.com
 * @description:
 * @since: 1.0
 */
public class GoodsComment implements Serializable {

    /* 自增ID */
    private Integer commentId;
    /* 商品ID */
    private Integer goodsId;
    /* 消费者ID，关联ACCOUNT表中的主键 */
    private Integer producerId;

    private Integer accountId;
    /* 是否已点赞：已点赞:Y;未点赞 */
    private String goodsLike;
    /* 评论 */
    private String goodsComment;
    /* 有效：VALID;无效:INVALID */
    private String validStatus;
    /* 已删除：Y;未删除：N */
    private String removeStatus;
    /* 创建时间 */
    private Date createDate;
    /* 最近更新时间 */
    private Date updateDate;

    public GoodsComment() {

    }

    public GoodsComment(Integer commentId, Integer goodsId, Integer producerId, Integer accountId, String goodsLike, String goodsComment, String validStatus, String removeStatus, Date createDate, Date updateDate) {
        this.commentId = commentId;
        this.goodsId = goodsId;
        this.producerId = producerId;
        this.accountId = accountId;
        this.goodsLike = goodsLike;
        this.goodsComment = goodsComment;
        this.validStatus = validStatus;
        this.removeStatus = removeStatus;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getProducerId() {
        return producerId;
    }

    public void setProducerId(Integer producerId) {
        this.producerId = producerId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getGoodsLike() {
        return goodsLike;
    }

    public void setGoodsLike(String goodsLike) {
        this.goodsLike = goodsLike;
    }

    public String getGoodsComment() {
        return goodsComment;
    }

    public void setGoodsComment(String goodsComment) {
        this.goodsComment = goodsComment;
    }

    public String getValidStatus() {
        return validStatus;
    }

    public void setValidStatus(String validStatus) {
        this.validStatus = validStatus;
    }

    public String getRemoveStatus() {
        return removeStatus;
    }

    public void setRemoveStatus(String removeStatus) {
        this.removeStatus = removeStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return ReflectUtil.fieldsToString(this);
    }
}
